﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TopPage.ascx.vb" Inherits="FrontEnd_Control_TopPage" %>
<%@ Import Namespace="Cls_Common" %>
<%@ Register src="QuangCao/TopBanner.ascx" tagname="TopBanner" tagprefix="uc1" %>
<script type="text/javascript">
    function OpenFormLogin() {
        $("#LoginForm").click();
    }
    function OpenFormRegister() {
        $("#RegisterForm").click();
    }

</script>

<div class="rowbanner_pages" >
            		<!-- top pages -->
                    <div class="top_pages">
                    	<!-- hotline-->
                        <div class="hotline_pages">
                                <div class="text_hotline_pages">
                                        <img  border="0" align="absmiddle" src='<%=ResolveUrl("~/FrontEnd/images/icon_hotline.png")%>' alt="Hotline"> Hotline: <span><%=Hotline %></span>
                                </div>
                        </div>
                        <!-- hot line -->
                    	<!--language -->
                        <div class="language_pages">
               
                        </div>
                        <!--end language -->
                        
                    	<!--Link control -->
                        <div class="box_menucontrol">
                    		<ul class="linknav_pages">
                                <li><a class="active" href='<%=MainDomain  %>'>Tiếng anh</a></li>     
                                <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>                                                        
                                <li><a class="active" href='<%=MainDomain %>'>Tiếng việt</a></li>      
                                 
                                 <%  If Session("UserName") Is Nothing Then%>
                                <li><a id="LoginForm" class="thickbox" href='<%=MainDomain & "dang-nhap.html?keepThis=true&TB_iframe=true&height=250&width=450&modal=true" %>'>Login</a></li>
                                <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>
                                <li><a id="RegisterForm" class="thickbox" href='<%=MainDomain & "dang-ky.html?keepThis=true&TB_iframe=true&height=550&width=620&modal=true" %>'>Đăng ký</a></li>
                                <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>

                                <% Else%>
                                  
                                    <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>
                                     <li><asp:HyperLink ID="lbtnExit" runat="server" Text="Thoát" NavigateUrl="~/Logout.aspx" ></asp:HyperLink> </li>
                                     <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>
                                     <li><a href='<%=MainDomain &"myAdmin.html" %>'>Quản lý</a> </li>
                                     <li><img src='<%=ResolveUrl("~/FrontEnd/images/icon_dot.png")%>' border="0" /></li>
                                       <li><a href="#">Chào bạn <b style="color: #FF1206"> <%= Session("UserName")%></b></a></li>
                                    

                              <% End If%>

                                                       
                            </ul>
                    	</div>                        
                        <!-- end link control -->
                    	
                    </div>
                    <!-- end top pages -->
                    
            		<div class="banner_pages">
                    		<div class="logopages">
                    				<a href=""><img  src='<%=ResolveUrl("~/FrontEnd/images/logo.png")%>'   border="0" /></a>
                    		</div>
                            <!-- SEARCH -->
                            <div class="box_adv_banner">
                                

                                <uc1:TopBanner ID="TopBanner1" runat="server" />
                                

                            </div>
                            <!-- END SEARCH -->
                            
                             <!-- shopping cart -->
                              <div class="cell_shoppingcart">
                                        <div class="text_shoppingcart">
                                                <img src='<%=ResolveUrl("~/FrontEnd/images/icon_cart.png")%>'  border="0" align="absmiddle"> 
                                                    <a href='<%=MainDomain & "gio-hang.html" %>' id="GiohangTop">
                                                        Cart: <asp:Label ID="lblNumberItem" runat="server" Text="0"/> item(s) - 
                                                        <asp:Label ID="lblSumOfMoney" runat="server" Text="$0"/>
                                                </a>
                                        </div>
                              </div>
                              <!-- end shopping cart -->
                    </div>
            </div>

    